package com.nfIt.main;

import com.nfIt.dao.Impl.staffsDaoImpl;
import com.nfIt.dao.staffsDao;
import com.nfIt.pojo.staffs;

/**
 * ClossName:StaffsUpdate
 * Pakage:com.nfIt.main
 * Description
 *
 * @Author L
 * @Create 2024/3/7 15:05
 * @Version 2023.1.3
 */
public class StaffsUpdate {
    public static void main(String[] args) {
        //修改
        staffsDao staffsDao = new staffsDaoImpl();
        staffs s = new staffs();
        s.setId(1);
        s.setName("liaohui");
        s.setAge(18);
        s.setPos("xxxxxx");

        int rows =  staffsDao.staffsUpdaId(s);
        System.out.println(rows);
    }
}
